import request from '@/utils/request'

// 查询接口档案列表
export function listItfdoc(data) {
  return request({
    url: '/service/SipPorxyService',
    method: 'post',
    params: {type:'RE_SIP_LIST'},
    data: data
  })
}

// 查询接口档案详细
export function getItfdoc(data) {
  return request({
    url: '/service/SipPorxyService',
    method: 'post',
    data: data
  })
}

// 新增接口档案
export function addItfdoc(data) {
  return request({
    url: '/service/SipPorxyService',
    method: 'post',
    data: data
  })
}

// 修改接口档案
export function updateItfdoc(data) {
  return request({
    url: '/service/SipPorxyService',
    method: 'post',
    data: data
  })
}

// 删除接口档案
export function delItfdoc(data) {
  return request({
    url: '/service/SipPorxyService',
    method: 'post',
    data: data
  })
}

// 重载缓存
export function loadsip(data) {
  // return request.post('/service/SipPorxyService',data)
  return request({
    url: '/service/SipPorxyService',
    method: 'post',
    params: { type: 'RE_SYS_TOOL' },
    data: data
  })
}